package Java.test;
//循环嵌套
public class ForTest3 {
    public static void main(String[] args) {
    method1();
    method2();
    method3();
    }
    //输出9*9图案
    public static void method1(){
        for (int i=0;i<9;i++){
            for (int j=0;j<9;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
    //输出一半图案
    public static void method2(){
        for (int i=0;i<9;i++){
            for (int j=0;j<=i;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
    //输出9*9乘法表
    public static void method3(){
        for (int i=0;i<9;i++){
            for (int j=0;j<=i;j++){
                System.out.print((j+1)+"*"+(i+1)+"="+(j+1)*(i+1)+"\t");
            }
            System.out.println();
        }
    }
}

